﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EnCor.Security
{
    public abstract class AuthenticationAdapter : IAuthenticationAdapter
    {
        private bool _IsReadOnly;

        public abstract Credential GetCredential();

        public abstract void SetCredential(AuthenticateToken token);

        public abstract void ClearCredential();

        public virtual bool IsReadOnly 
        {
            get
            {
                return _IsReadOnly;
            }
            set
            {
                _IsReadOnly = value;
            }
        }
    }
}
